#include<stdio.h>

int main(){
    int t;
    long double a,b;
    scanf("%d",&t);
    while(t--){
        scanf("%llf %llf",&a,&b);
        printf(a>b?"xx\n":"zd\n");
    }
}